var globalMenu;

Ext.define('EUniversitySuperAdmin.controller.actionmenus', {
 
    extend: 'Ext.app.Controller',
    models: ['actionmenus'],
    stores: ['actionmenus'],
    views: [
     		'actionmenus.leftmenu'
        	
    		],
      refs : [{
        ref: 'leftmenu',
        selector: 'leftmenu',
       
    },{
    	ref :'viewport',
    	selector : 'viewport'
    }],
    init: function() {
    	
    	Ext.Ajax.request({
   		 url: 'pilotage/projectbord/loaddataboard',
		    success: function(response){
		    	 Ext.getCmp('tabs').add({
				        title: 'Analitic Board',
				        height:'300',
				        
				       layout: {
				    	    type: 'hbox',
				    	    pack: 'start',
				    	    align: 'stretch'
				    	},
				        items:[
				        {	
				        	xtype: 'analyticboardgridboard',
				        	width:'50%',
				        
				        	flex:1
					      },
					     {	
				        	xtype: 'chartboard',
				        	width:'50%',
				        	flex:2
						 }
							 
				        ],
				        closable:true
				    }).show();
		    }
    	});
    	
    	
        var view = Ext.widget("leftmenu");
    	this.getViewport().layout.regions.east.add(view);
    } ,
    onPanelRendered:function(){
   
    }
    
});